/*
 * Copyright 2013 University of Padua, Italy
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package it.dei.unipd.healthservice.resource;

/**
 * Fabbrica
 * 
 * @author Giorgio Vitale, Valentini
 * @version 1.00
 */
public class Fabbrica {	
	/**
	 * login della fabbrica
	 */
	private final String login;
	/**
	 * password di accesso al sistema per la fabbrica
	 */
	private final String password;
	/**
	 * Stato in cui si trova la fabbrica
	 */
	private final String stato;
	/**
	 * Provincia in cui si trova la fabbrica
	 */
	private final String provincia;
	/**
	 * Indirizzo della fabbrica
	 */
	private final String indirizzo;
	/**
	 * Città in cui si trova la fabbrica
	 */
	private final String citta;
	/**
	 * CAP
	 */
	private final String cap;
	
	public Fabbrica(String login, String password, String stato, String provincia, String citta, String indirizzo, String cap){
		this.login = login;
		this.password = password;
		this.stato = stato;
		this.provincia = provincia;
		this.indirizzo = indirizzo;
		this.citta = citta;
		this.cap = cap;
	}

	public Fabbrica(String login, String password){
		this.login = login;
		this.password = password;
		this.stato = "";
		this.provincia = "";
		this.indirizzo = "";
		this.citta = "";
		this.cap = "";
	}

	/**
	 * @return the login
	 */
	public String getLogin() {
		return login;
	}


	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}


	/**
	 * @return the stato
	 */
	public String getStato() {
		return stato;
	}


	/**
	 * @return the provincia
	 */
	public String getProvincia() {
		return provincia;
	}


	/**
	 * @return the indirizzo
	 */
	public String getIndirizzo() {
		return indirizzo;
	}


	/**
	 * @return the citta
	 */
	public String getCitta() {
		return citta;
	}


	/**
	 * @return the cap
	 */
	public String getCap() {
		return cap;
	}


	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Fabbrica [login=" + login + ", password=" + password
				+ ", stato=" + stato + ", provincia=" + provincia
				+ ", indirizzo=" + indirizzo + ", citta=" + citta + ", cap="
				+ cap + "]";
	}
	
}